package com.wlyuan.index.domain.index.valueobj;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.time.LocalDateTime;

/**
 * @author yuanjie
 */
@Deprecated
@Data
public class WaybillReceipt {
    @ApiModelProperty("复核签收时间")
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private LocalDateTime receiptSignAt;

    @ApiModelProperty("回单时间")
    @Field(type = FieldType.Date, format = DateFormat.custom, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'")
    private LocalDateTime receiptAt;

    @ApiModelProperty("回单类型")
    private Integer type;

    @ApiModelProperty("回单数量")
    private Integer quantity;

    @ApiModelProperty("回单异常数量")
    private Integer exceptionQuantity;

    @ApiModelProperty("回单缺少数量")
    private Integer lackQuantity;

    @ApiModelProperty("回单丢失数量")
    private Integer loseQuantity;

    @ApiModelProperty("回单破损数量")
    private Integer damageQuantity;

    @ApiModelProperty("回单异常其他数量")
    private Integer otherQuantity;

    @ApiModelProperty("回单复核")
    private Boolean reviewed;

    @ApiModelProperty("回单补单")
    private Boolean recovered;

    @ApiModelProperty("创建人")
    private Long receiptBy;
}
